package com.sqfw.common.utils;

import java.util.LinkedHashMap;
import java.util.Map;

public class Query extends LinkedHashMap<String, Object> {
    private static final long serialVersionUID = 1L;
    private int pageNumber;
    private int pageSize;

    public Query(Map<String, Object> params) {
        this.putAll(params);
        this.pageNumber = Integer.parseInt(params.get("pageNumber").toString());
        this.pageSize = Integer.parseInt(params.get("pageSize").toString());
        this.put("pageNumber", this.pageNumber);
        this.put("pageSize", this.pageSize);
    }

    public int getPageNumber() {
        return this.pageNumber;
    }

    public void setPageNumber(int pageNumber) {
        this.pageNumber = pageNumber;
    }

    public int getPageSize() {
        return this.pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }
}
